<h2>Editing Approval</h2>  
<%= error_messages_for 'approval' %>
<p id="instruction">
	Please review this grant application.  This grant application requires your approval to be submitted to the Education Foundation Grants to Educators.
</p>

<h6>Applicant Information</h6>
<div class="form_question">
<div class="form_element_label">Contact</div> 
<div class="form_element">
	<p>
		<strong>Email Address</strong>: <%= mail_to @approval.submission.user.email %>
	</p>

	<p>
		<strong>Name</strong>: <%=h @approval.submission.user.first_name + " " +  @approval.submission.user.last_name %> 

	</p> 

	<p>
		<strong>Work Phone</strong>: <%=h @approval.submission.user.work_phone %> 
	</p>

	<p>
		<strong>Site</strong>: <%=h @approval.submission.user.site.name %> 
	</p>   

	<p>
		<strong>Position/Title</strong>: <%=h @approval.submission.user.position %> 
	</p>

	<p>
		<strong>Site Phone</strong>: <%=h @approval.submission.user.site.phone %> 
	</p>

	<% if @approval.submission.user.id != @approval.submission.user.site.manager.id -%>
	<p>
		<strong>Manager</strong>: <%= link_to @approval.submission.user.site.manager.display_name, :action => "show", :id => @approval.submission.user.site.manager %> 
	</p>  

	<p>
		<strong>Manager Email</strong>: <%= mail_to @approval.submission.user.site.manager.email %> 
	</p>

	<p>
		<strong>Manager Phone</strong>: <%=h @approval.submission.user.site.manager.work_phone %> 
	</p>   
	<% end -%>
</div>                 
</div>

<%= render :inline => @approval.submission.cycle.manager_view, 
         	 :locals => { :@submission_data => @submission_data } if @submission_data %>  
<h6>Administrative Information</h6>
<div class="form_question">
<div class="form_element_label">Total Request</div> 
<div class="form_element"><%=h sprintf("$ %0.2f", @approval.submission.total_cost) %></div>                 
</div>   

<% form_tag :action => 'update', :id => @approval do %>
  <%= render :partial => 'form' %> 
  <table>
		<tr>
			<td>
  			<%= submit_tag 'Submit' %>
			</td>
			<td>
			  <%= submit_tag 'Cancel' %>
			</td>
		</tr>
	</table>
<% end %>
<%= link_to 'Back to Work List', :action => 'list' %>

